package com.jdrx.sw.sewage.beans.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * sewage_device_storage
 */
@Data
@ApiModel(value = "DevStoragePO", description = "资产入库设备")
public class DevStoragePO implements Serializable {
    private static final long serialVersionUID = -1206960462117924923L;

    @ApiModelProperty(value = "主键", required = true)
    private Long id;

    @ApiModelProperty(value = "入库设备大类", required = true)
    private Long storageTypeId;

    @ApiModelProperty(value = "物料类型id", required = true)
    private Long materielId;

    @ApiModelProperty(value = "设备品类id", required = true)
    private Long categoryId;

    @ApiModelProperty(value = "生产厂家 ", required = true)
    private Long factoryId;

    @ApiModelProperty(value = "采购时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date purchaseTime;

    @ApiModelProperty(value = "设备规格", required = true)
    private String dossierSpec;

    @ApiModelProperty(value = "设备照片", required = true)
    private String attach;

    @ApiModelProperty(value = "电子手册", required = true)
    private String electronicManual;

    @ApiModelProperty(value = "入库时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createAt;

    @ApiModelProperty(value = "更新时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateAt;

    @ApiModelProperty(value = "库类型（3-使用 2-库存 1-报废）", required = true)
    private Integer devType;

    @ApiModelProperty(value = "录入人", required = true)
    private String createBy;

    @ApiModelProperty(value = "设备编号", required = true)
    private String deviceNum;

    @ApiModelProperty(value = "维保周期", required = true)
    private Integer maintenanceCycleDay;

    @ApiModelProperty(value = "维保周期", required = true)
    private Integer maintenanceCycleHour;

    @ApiModelProperty(value = "使用时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date enableTime;

    @ApiModelProperty(value = "删除标记 false:正常 true:删除", required = true)
    private Boolean deleteFlag;

    @ApiModelProperty(value = "报废时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date scrapTime;

    @ApiModelProperty(value = "设备SN号", required = true)
    private String snNum;

    @ApiModelProperty(value = "周期时间")
    private Integer cycleTime;

    @ApiModelProperty(value = "工作时间")
    private Integer workTime;

    @ApiModelProperty(value = "PLC逻辑点位(0 - 否 1 - 是)", required = true)
    private Integer plcLogicPoint;

    @ApiModelProperty(value = "是否初始工作时间(0 - 否 1 - 是)", required = true)
    private Integer initWorkTime;
}